using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Data/State/Player/PlayerIdle", fileName = "PlayerIdle")]
public class PlayerState_Idle : PlayerState
{
    //
    public override void Enter()
    {
        base.Enter();
    }
    
    //
    public override void Exit()
    {
        base.Exit();
    }
    
    //
    public override void LogicUpdate()
    {
        base.LogicUpdate();
        // 玩家移动 并且 鼠标状态不为 AStar寻路状态
        if (PlayerInput.Instance.GetIsInputMove && PlayerInput.Instance.MouseState != MouseState.AStar)
        {
            stateMachine.SwitchState(stateMachine.stateTable[typeof(PlayerState_Walk)]);
        }
    }
    
    //
    public override void PhysicalUpdate()
    {
        base.PhysicalUpdate();
    }
}